package com.itany.corejava.day03;

public class Test1 {

    public static void main(String[] args) {
        int num=(int)(Math.random()*(10-(-10)+1))+(-10);
        System.out.println("num = " + num);
        if(num>0){
            System.out.println("正数");
        }
        if(num<0){
            System.out.println("负数");
        }
        if(num==0){
            System.out.println("0");
        }

        if(num>0){
            System.out.println("正数");
        }else{
            if(num<0){
                System.out.println("负数");
            }else{
                System.out.println("0");
            }
        }

        if(num>0){
            System.out.println("正数");
        }else if(num<0){
            System.out.println("负数");
        }else{
            System.out.println("0");
        }





    }

}
